import request from '@/utils/request'

export function fetchOrganizationList(data) {
  return request({
    url: '/cloud-system/getOrganizationList',
    method: 'post',
    data
  })
}

export function fetchOrganizationOne(data) {
  return request({
    url: '/cloud-system/getOneOrganizationDetail',
    method: 'post',
    data
  })
}

export function createOrganization(data) {
  return request({
    url: '/cloud-system/createOneOrganization',
    method: 'post',
    data
  })
}

export function updateOrganization(data) {
  return request({
    url: '/cloud-system/updateOneOrganization',
    method: 'post',
    data
  })
}

export function deleteOrganization(data) {
  return request({
    url: '/cloud-system/deleteOneOrganization',
    method: 'post',
    data
  })
}
export function batchDeleteOrganization(data) {
  return request({
    url: '/cloud-system/batchDeleteOrganization',
    method: 'post',
    data
  })
}

export function lockOrganization(data) {
  return request({
    url: '/cloud-system/lockOneOrganization',
    method: 'post',
    data
  })
}

export function unlockOrganization(data) {
  return request({
    url: '/cloud-system/unlockOneOrganization',
    method: 'post',
    data
  })
}

export function batchLockOrganization(data) {
  return request({
    url: '/cloud-system/batchLockOrganization',
    method: 'post',
    data
  })
}

export function batchUnLockOrganization(data) {
  return request({
    url: '/cloud-system/batchUnLockOrganization',
    method: 'post',
    data
  })
}
